package com.ding.dailyup.emum;

import com.google.common.collect.Lists;

public enum StrategyStatusEnum {
	FREE(1), TIME_LIMIT(2), PAY(3), DEL(9);

	private int status;

	StrategyStatusEnum(int status) {
		this.status = status;
	}

	public int status() {
		return status;
	}

	/**
	 * 免费或者限时的, 就是可用的
	 * @param statusT
	 * @return
	 */
	public static boolean usable(int statusT) {
		return Lists.newArrayList(FREE.status, TIME_LIMIT).contains(statusT);
	}
}
